package com.erp.erp_mask.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.erp.erp_mask.mapper.TUsersMapper;
import com.erp.erp_mask.pojo.TUsers;
import com.erp.erp_mask.service.TUsersService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yang
 * @description 针对表【t_users】的数据库操作Service实现
 * @createDate 2024-05-08 10:40:30
 */
@Service
public class TUsersServiceImpl extends ServiceImpl<TUsersMapper, TUsers>
        implements TUsersService {

    @Resource
    private TUsersMapper usersMapper;
    @Override
    public Page<TUsers> searchPage(String username, String name, Integer state,Long pageNo,Long pageSize) {
        return usersMapper.search(username,name,state,new Page<TUsers>(pageNo,pageSize));
    }

    @Override
    public void Addlist(TUsers tUsers) {
        usersMapper.Addlist(tUsers);
    }

    @Override
    public void edit(TUsers tUsers) {
        usersMapper.edit(tUsers);
    }
}




